Specified X
Specified Y
The width of the subject
The height of the subject
Alignment for calculating newX and newY
Out arg
The bounds to align to. If It is == 0, it won't be considered in the calculation
See Implementation